'use strict';

angular.module('theApp', [
    'ngRoute',
    'firebase',
    'theApp.filters',
    'theApp.directives',
    'theApp.controllers',
    'theApp.routes',
    'theApp.servicesA'
])

.value('root', (new Firebase('https://ssw-ng1-1.firebaseio.com')))

.run(function(root, $rootScope, $location, $route) {
  $rootScope.signOut = function() {
        root.unauth();
        $location.path('/home');
        $route.reload();
    };
})

;

